The aim of this project is to develop a demo merging the following concepts:
- Testing
- Cybersecurity
- Code editor: VSCode
- Code host: Github
- Security added
- git-crypt
- Dependabot
- CodeQL Analysis
- Restricted PRs
- Github Actions + secrets
- Test development: Toolium - https://github.com/Telefonica/toolium
- SUT: Portswigger Labs - https://portswigger.net/
- Replace
test/conf/properties.cfgfile withtest/conf/clean-properties.cfg - Create a Porswigger account to access the labs
- Add your credentials to
properties.cfgfile:[Test] url: https://portswigger.net username: <USER> password: <PASSWORD> xss_lab_1: web-security/cross-site-scripting/reflected/lab-html-context-nothing-encoded sqli_lab_1: web-security/sql-injection/lab-retrieve-hidden-data
-
Create virtualenv and install requirements:
$ virtualenv venv $ source venv/bin/activate $ pip install -r requirements.txt -
Execute test cases
$ cd test $ behave
-
Execute security test cases
$ cd test $ behave -t @security